﻿<Window x:Class="CPPEI.Coolzon.UI.Views.Windows.SelectDomainWindows"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="选择控制域" SizeToContent="WidthAndHeight" ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <StackPanel>
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock Text="控制域:" Width="75" Margin="5"/>
            <ComboBox Name="_ctlListDomain" Width="200">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition Width="auto"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{Binding Path=Caption}" Grid.Column="0"/>
                            <TextBlock Text="(" Grid.Column="1"/>
                            <TextBlock Text="{Binding Path=CreatorAccount}" Grid.Column="2"/>
                            <TextBlock Text=")" Grid.Column="3"/>
                        </Grid>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="5" HorizontalAlignment="Center">
            <Button Name="_ctlBtnOK" Content="确 认" Width="75" Margin="5" Click="_ctlBtnOK_Click"/>
            <Button Name="_ctlBtnCancel" Content="取 消" Width="75" Margin="5" Click="_ctlBtnCancel_Click"/>
            <Button Name="_ctlBtnNewDomain" Content="新增域" Width="90" Margin="5" Click="_ctlBtnNewDomain_Click"/>
        </StackPanel>
    </StackPanel>
</Window>
